let path = require('path')

//当前路径分割符,window \ lunix /
console.log(path.sep)

// 分解路径，转换成一个对象
let str = '/usr/var/test/vs/index.html';
console.log(path.parse(str))


console.log(__dirname)

console.log(__filename)

console.log(path.resolve(__dirname,'index.html'))